package duty_info

import "github.com/gin-gonic/gin"

func ViewInit(e *gin.Engine) {
	dutyView := NewDutyView()
	//init url
	versionURLInit(e, dutyView)
}

func versionURLInit(e *gin.Engine, view *DutyView) {
	e.GET("/api/duty_info/search_new", view.searchDutyInfoView)

}

func Routers(e *gin.Engine) {
	//新增
	e.POST("/api/duty_info/create", createDutyInfoView)
	//修改
	e.POST("/api/duty_info/update", updateDutyInfoView)
	//删除
	e.GET("/api/duty_info/delete", deleteDutyInfoView)
	//查询
	e.GET("/api/duty_info/search", searchDutyInfoView)

}
